package com.lm.survey.model;

import java.util.Date;

import com.lm.survey.lifecycle.GeneralLifecycle;
import com.lm.survey.logic.Cache;

public class ParticipantDetailRecord {
    int id ;
    int participantId;
    int relationType;
    int activityId;
    Date startDate;
    Date endDate;
    int status;
    String participantName;
    String participantEmail;
    String userName;
    String userEmail;
    int qid;
    String qname;
    int expertCommentRequired;
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
   
    public int getParticipantId() {
        return participantId;
    }
    public void setParticipantId(int participantId) {
        this.participantId = participantId;
    }
    public int getRelationType() {
        return relationType;
    }
    public void setRelationType(int relationType) {
        this.relationType = relationType;
    }
    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }
   
    public Date getStartDate() {
        return startDate;
    }
    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }
    public Date getEndDate() {
        return endDate;
    }
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public String getParticipantName() {
        return participantName;
    }
    public void setParticipantName(String participantName) {
        this.participantName = participantName;
    }
    public String getParticipantEmail() {
        return participantEmail;
    }
    public void setParticipantEmail(String participantEmail) {
        this.participantEmail = participantEmail;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserEmail() {
        return userEmail;
    }
    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }
    public int getQid() {
        return qid;
    }
    public void setQid(int qid) {
        String str = Cache.instance().getQuestionnaire(qid).getHandleClass();
        expertCommentRequired = GeneralLifecycle.getLifecycle(str).expertComment()?1:0;
        this.qid = qid;
    }
    public String getQname() {
        return qname;
    }
    public void setQname(String qname) {
        this.qname = qname;
    }
    
    public int getExpertCommentRequired(){
        return this.expertCommentRequired;
    }
    
}
